package org.minbox.chapter.seata.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account-center")
public interface AccountClient {
@PostMapping("/account/deduction")
    public String deduction(@RequestParam("accountId") Integer accountId, @RequestParam("money") Double money);
}
